One way you could accomplish this is to use something like UIGraphicsGetImageFromCurrentImageContext() and then to capture separately a frame from the live camera feed before compositing the two images together with, say, Core Graphics to form one image that reconstructs what a “real” screenshot would show. I’m not sure if there’s a more elegant way to do it, but this method should work; it just might require some complex calculations to put the camera frame in the right spot with any appropriate masking, depending on the complexity of your UI layout.
I suspect that whatever code the system runs when the user presses the hardware buttons is not accessible to third-party developers.
I don’t think that there’s a way to convert a playground book into an app directly. You should probably create a new, empty playground app and then copy and paste your code into it.
That’s an issue with a non-Apple product/service, so this forum probably isn’t the best place for your inquiry. However, I’m pretty sure that Google Sheets doesn’t support Google Apps Script on iPad.
One way you could accomplish this is to use something like UIGraphicsGetImageFromCurrentImageContext() and then to capture separately a frame from the live camera feed before compositing the two images together with, say, Core Graphics to form one image that reconstructs what a “real” screenshot would show. I’m not sure if there’s a more elegant way to do it, but this method should work; it just might require some complex calculations to put the camera frame in the right spot with any appropriate masking, depending on the complexity of your UI layout.
I suspect that whatever code the system runs when the user presses the hardware buttons is not accessible to third-party developers.
I don’t think that there’s a way to convert a playground book into an app directly. You should probably create a new, empty playground app and then copy and paste your code into it.
That’s an issue with a non-Apple product/service, so this forum probably isn’t the best place for your inquiry. However, I’m pretty sure that Google Sheets doesn’t support Google Apps Script on iPad.